package com.yaoxiaowen.project2.test.javascript;

import android.webkit.JavascriptInterface;

import com.yaoxiaowen.project2.MainApplication;
import com.yaoxiaowen.project2.util.ToastUtils;

/**
 * Created by Administrator on 2017/2/15.
 */

public class AndroidCommonJsInterface {

    @JavascriptInterface
    public void show(String str){
        ToastUtils.simpleShow(MainApplication.getInstance().getBaseContext(), str);
    }

    @JavascriptInterface
    public String getMsg(){
        return "来自AndroidCommonJsInterface.java 的  getMsg()方法";
    }
}
